<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:uddi="urn:uddi-org:api_v3">
	<xsl:output method="xml" encoding="UTF-8"/>

	<xsl:include href="contact.xsl"/>

	<!-- Match the contacts UDDI element -->
	<xsl:template match="uddi:contacts">
		<xsl:variable name="contactCount"><xsl:value-of select="count(uddi:contact)"/></xsl:variable>
		<fieldset>
			<legend>Contacts [<xsl:value-of select="$contactCount"/>]</legend>
			<xsl:if test="$contactCount > 0">
				<xsl:apply-templates match="uddi:contact"/>
			</xsl:if>
		</fieldset>
	</xsl:template>

</xsl:stylesheet>